<template>
  <el-aside width="200px">
    <el-menu active-text-color="#ffd04b" background-color="#545c64" class="el-menu-vertical-demo" default-active="2"
      text-color="#fff" @open="handleOpen" @close="handleClose">

      <template>

      </template>
      <el-sub-menu index="1">
        <template #title>商品管理</template>
        <el-menu-item index="1-1">商品列表</el-menu-item>
        <el-menu-item index="1-2">添加商品</el-menu-item>
      </el-sub-menu>

      <el-menu-item index="2">
        <el-icon><icon-menu /></el-icon>
        <span>用户管理</span>
      </el-menu-item>

    </el-menu>
  </el-aside>
</template>

<script setup>
import {
  Document,
  Menu as IconMenu,
  Location,
  Setting,
} from '@element-plus/icons-vue'

const handleOpen = (key, keyPath) => {
  console.log(key, keyPath)
}
const handleClose = (key, keyPath) => {
  console.log(key, keyPath)
}

const props = defineProps([''])
</script>

<style lang="scss" scoped>
.el-aside {
  background-color: #545c64;
}
</style>